{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>商家联盟列表</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>id</th>
                                <th>logo</th>
                                <th>名称</th>
                                <th>地址</th>
                                <th>电话</th>
                                <th>负责人</th>
                                <th>状态</th>
								<th>排序</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>{$ad.id}</td>
                        		<td><img src="{$ad.thumb}"  width="50px"/></td>
                        		<td>{$ad.name}</td>
                        		<td>{$ad.address}</td>                       		
                        		<td>{$ad.store_tel}</td>
                        		<td>{$ad.shopowner}</td>
                        		<td>
                        			{if $ad.status == 1}
                        			审核中
                        			{elseif $ad.status == 2}
                        			审核通过
                        			{else}
                        			审核不通过
                        			{/if}
                        		</td>
                        		<td>{$ad.sort}</td>
                        		<td>	
                        			<a href="{:url('edit',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 查看</a>
									<a href="{:url('examines',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 审核</a>
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script>
</script>
{/block}